package com.xinqi.modules.sys.feedback.dto.req;

import com.xinqi.common.core.enums.FeedbackTypeEnum;
import com.xinqi.common.green.annotation.Text;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户反馈表-请求对象-新增
 *
 * @author: yyzhenn
 * @date: 2023/04/23
 */
@Data
@Schema(description = "用户反馈表-请求对象-新增")
public class FeedbackCreateDTO implements Serializable {

    @NotNull(message = "{feedback.type.not.blank}")
    @Schema(description = "反馈类型", example = "")
    private FeedbackTypeEnum type;

    @Text
    @NotEmpty(message = "{feedback.content.not.blank}")
    @Size(min = 0, max = 500, message = "{feedback.content.length.valid}")
    @Schema(description = "反馈内容", example = "")
    private String content;

    @Schema(description = "图片集 多张用JSON格式", example = "")
    private String images;

    @Schema(description = "联系方式", example = "")
    private String contact;

    @Schema(title = "操作用户ID(内部流转参数，不对外)", hidden = true)
    private Long operationUserId;
}
